package cn.hellochaos.generator.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fmy
 * @since 2021-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("point请求结构")
public class Point extends BaseColumns//Model<Point>
{

    private static final long serialVersionUID = 1L;

    @TableId(value = "point_id", type = IdType.AUTO)
    @ApiModelProperty("pointId")
    //@JsonIgnore 更新必须用到id
    private Integer pointId;

    /**
     * 散点图x坐标
     */
    private BigDecimal xAxis;

    /**
     * 散点图y坐标
     */
    private BigDecimal yAxis;

    /**
     * 散点半径
     */
    private Integer radius;

    private Long fisheryId;

    // @TableLogic
    @JsonIgnore
    private Integer ideletetag;

//    private String createdBy;
//
//    private String modifiedBy;

//    private LocalDateTime createdTime;
//    @TableField(update = "now()")
//    private LocalDateTime modifiedTime;

//    @Override
//    protected Serializable pkVal() {
//        return this.pointId;
//    }

}
